<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Procmail-3.22
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;19.&nbsp;Mail/News Clients
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="mutt.html" title="Mutt-1.13.4">Prev</a>
          <p>
            Mutt-1.13.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="othermn.html" title=
          "Other Mail and News Programs">Next</a>
          <p>
            Other Mail and News Programs
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="mailnews.html" title=
          "Chapter&nbsp;19.&nbsp;Mail/News Clients">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="procmail" name="procmail"></a>Procmail-3.22
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Procmail
        </h2>
        <p>
          The <span class="application">Procmail</span> package contains an
          autonomous mail processor. This is useful for filtering and sorting
          incoming mail.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://ftp.osuosl.org/pub/blfs/conglomeration/procmail/procmail-3.22.tar.gz">
                http://ftp.osuosl.org/pub/blfs/conglomeration/procmail/procmail-3.22.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 1678ea99b973eb77eda4ecf6acae53f1
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 226 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 1.7 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Required patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/svn/procmail-3.22-consolidated_fixes-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/svn/procmail-3.22-consolidated_fixes-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Procmail Dependencies
        </h3>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          A <a class="xref" href="../server/mail.html" title=
          "Chapter&nbsp;21.&nbsp;Mail Server Software">MTA</a> that installs
          sendmail
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/procmail">http://wiki.linuxfromscratch.org/blfs/wiki/procmail</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Procmail
        </h2>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Install <span class="application">Procmail</span> by running the
          following commands as the <code class="systemitem">root</code>
          user:
        </p>
        <pre class="root">
<kbd class=
"command">sed -i 's/getline/get_line/' src/*.[ch]                   &amp;&amp;
patch -Np1 -i ../procmail-3.22-consolidated_fixes-1.patch &amp;&amp;

make LOCKINGTEST=/tmp MANDIR=/usr/share/man install       &amp;&amp;
make install-suid</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -i 's/getline/get_line/'
          src/*.[ch]</strong></span>: This renames procmail's getline
          function to avoid conflict with the getline function from
          <span class="application">glibc</span>.
        </p>
        <p>
          <span class="command"><strong>make LOCKINGTEST=/tmp
          install</strong></span>: This prevents <span class=
          "command"><strong>make</strong></span> from asking you where to
          test file-locking patterns.
        </p>
        <p>
          <span class="command"><strong>make install-suid</strong></span>:
          Modifies permissions of the installed files.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring Procmail
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="procmail-config" name="procmail-config"></a>
          </h3>
          <h4 class="title">
            <a id="procmail-config" name="procmail-config"></a>Config Files
          </h4>
          <p>
            <code class="filename">/etc/procmailrc</code> and <code class=
            "filename">~/.procmailrc</code>
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm140006438416736" name=
            "idm140006438416736"></a>Configuration Information
          </h4>
          <p>
            Recipes have to be written and placed in <code class=
            "filename">~/.procmailrc</code> for execution. The procmailex man
            page is the starting place to learn how to write recipes. For
            additional information, see also <a class="ulink" href=
            "http://pm-doc.sourceforge.net/">http://pm-doc.sourceforge.net/</a>.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">formail, lockfile, mailstat and
              procmail</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">None</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="formail" name="formail"></a><span class=
                    "term"><span class=
                    "command"><strong>formail</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a filter that can be used to format mail into mailbox
                    format.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lockfile" name="lockfile"></a><span class=
                    "term"><span class=
                    "command"><strong>lockfile</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a utility that can lock a file for single use
                    interactively or in a script.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mailstat" name="mailstat"></a><span class=
                    "term"><span class=
                    "command"><strong>mailstat</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    prints a summary report of mail that has been filtered by
                    <span class="command"><strong>procmail</strong></span>
                    since the last time <span class=
                    "command"><strong>mailstat</strong></span> was ran.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="procmail-prog" name=
                    "procmail-prog"></a><span class="term"><span class=
                    "command"><strong>procmail</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is an autonomous mail processor. It performs all the
                    functions of an MDA (Mail Delivery Agent).
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-23 16:46:15 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="mutt.html" title="Mutt-1.13.4">Prev</a>
          <p>
            Mutt-1.13.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="othermn.html" title=
          "Other Mail and News Programs">Next</a>
          <p>
            Other Mail and News Programs
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="mailnews.html" title=
          "Chapter&nbsp;19.&nbsp;Mail/News Clients">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
